//
//  ViewController.swift
//  swiftAFN
//
//  Created by KIMI on 16/9/21.
//  Copyright © 2016年 KIMI. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        //url
        let url = "http://www.weather.com.cn/data/sk/101010100.html"
        WBNetworkTooles.sharedTools.requert(type: .GET, urlStr: url, params: nil) { (response, error) in
            
            if error != nil{
                
                print("网络异常\(error)")
            }
            if let result = response{
                
                print(result)
            }
        }
    }

  

}

